local choujue = fk.CreateSkill{
    name = "heg__choujue",
    tags = { Skill.Limited },
}

Fk:loadTranslationTable{
  ["heg__choujue"] = "仇决",
  [":heg__choujue"] = "限定技，当你杀死一名角色后，你可以摸三张牌并回复1点体力。",

  ["$heg__choujue1"] = "血海深仇，便在今日来报！",
  ["$heg__choujue2"] = "取汝之头，以祭先父！",
}

choujue:addEffect(fk.Deathed,{
    anim_type = "big",
    can_trigger = function(self, event, target, player, data)
      return player:hasSkill(choujue.name) and data.damage and data.damage.from == player and player:usedSkillTimes(choujue.name, Player.HistoryGame) == 0
      and target ~= player
    end,
    on_use = function(self, event, target, player, data)
      local room = player.room
      if player:isAlive() then
      room:drawCards(player, 3, choujue.name)
      room:recover({
        who = player,
        num = 1,
        recoverBy = player,
        skillName = choujue.name,
      })
      end
    end,
})

return choujue